package com.lv.service.bean

import android.graphics.Bitmap
import android.os.Parcelable
import androidx.annotation.Keep
import com.chad.library.adapter.base.entity.SectionEntity
import kotlinx.parcelize.Parcelize

@Parcelize
@Keep
data class CommonTab(
    var id: String? = "",
    var image: String? = "",
    val name: String? = "",
    var tag: Int = 0,
    var isSelcted: Boolean = false,
//    var isHead: Boolean = false,
) : Parcelable, SectionEntity {
    override val isHeader: Boolean
        get() = isSelcted
}

@Parcelize
@Keep
data class KeyValueTab(
    val name: String? = "",
    var value: String? = "",
) : Parcelable

@Parcelize
@Keep
data class ImageTypeBean(
    val image: String? = "",
    var type: String? = "",
//    val product: List<ProductBean>?,
) : Parcelable


@Parcelize
@Keep
data class ProductBean(
    val x: String = "",
    val y: String = "",
    val w: String = "",
    val h: String = "",
    val spuid: String = "",
    val spuTemplate: String = "",
    val type: String = "",
    val spuImag: String = "",
    val spuImage: String = "",
) : Parcelable

@Parcelize
@Keep
data class CommonSelectedBean(
    var name: String?,
    var tag: String = "",
    var selected: Boolean = false,
    var postiont: Int = 0,
    var proPostiont: Int = 0,
    var id: String = "",
    var tag2: String = "",
    var tag3: String = "",
    var tag4: String = "",
    var doubleData: Double = 0.0,
    var doubleDataBig: Double = 0.0,
) : Parcelable

@Keep
data class UserInfoTabBean(
    var name: String = "",
    var target: String = "",
    var scene: String = "",
    var collect: String = "",
    var content: String = "",
    var tag: String = "",
    var current: Int = -1,
)

@Keep
class VersionListBean : ArrayList<VersionUpdate>()

@Keep
data class VersionUpdate(
    val id: Int,
    val image: String,
    val position: String,
    val created: Long,
    val status: String,
    val url: String,
    val remarks: String,
    val province: String,
    val type: String,
    val jump: String,
    val tag: String,
    val cang: String,
    val showtiming: String,// 0 每天一次 1 每次显示
    val width: String,
    val height: String,
    val coordinate: String,
    val iscompel: String? = null,//是否强制显示 1 强制显示
    val isprivacy: String,
)


@Keep
data class CoorDinateBean(
    val click: ClickBean,
    val close: ClickBean,
)

@Keep
data class ClickBean(
    val x: Int,
    val y: Int,
    val w: Int,
    val h: Int,
)

@Keep
data class TokenBean(val refreshtoken: String?, val token: String?)
